package com.woniu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.pojo.MemberCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.vo.MemberCardQueryVo;
import com.woniu.vo.QueryMemberCardVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xie
 * @since 2022-10-12
 */
public interface MemberCardMapper extends BaseMapper<MemberCard> {


    IPage selectByItemInPage(IPage page, @Param("vo") MemberCardQueryVo vo);

    QueryMemberCardVo queryById(String id);

    void updateOne(@Param("memberId") String memberId, @Param("cardId") String cardId);

    void updateTwo(@Param("cost") BigDecimal cost, @Param("memberId") String memberId, @Param("cardId") String cardId);
}
